package lambda;

import java.io.File;
public class Test {
    public static void main(String[] args) {

        File dir = new File(".");
        if(dir.exists()){
            File[] sub = dir.listFiles(file -> file.getName().contains("o"));
            for(int i = 0;i< sub.length;i++){
                System.out.println(sub[i].getName());
            }
        }
    }
}
